<?php

namespace app\admin\model;

use think\Model;

class Money extends Model
{
    //性别字段修改器
    public function getSexAttr($value) {
        $sex = [0=>'男',1=>'女'];
        return $sex[$value];
    }

    //关联打卡信息
    public function cardInfo() {
        return $this->hasMany('Excels','username','username');
    }
}
